<template>
	<view class="index" :style="{'height':windowHeight}">
		<clothes></clothes>
		<view class="coupon">
			<view class="coupon-li" v-for="item in 5">
				<view class="li-left">
					<view class="li-left-one">
						<view class="li-left-one-num"><span>¥</span>10</view>
						<view class="li-left-one-txt">满100元可用</view>
					</view>
					<view class="li-left-twp">
						<view class="li-left-twp-top">套餐满减券</view>
						<view class="li-left-twp-head">2025-04-16到期</view>
						<view class="li-left-twp-btm">仅订购套餐可以使用</view>
					</view>
				</view>
				<view class="li-rig">可使用</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		components: {},
		data() {
			return {
				windowHeight: "200px", 
			}
		},
		onLoad() {
			this.GaoDu() //判断手机高度
		},
		methods: {
			// 判断手机高度
			GaoDu() {
				console.log('12356')
				// 判断手机页面的高度
				uni.getSystemInfo({

					success: (res) => {
						this.windowHeight = res.windowHeight + "px";
					}
				})
			},
		}
	}
</script>

<style scoped lang="less">
	.index {
		width: 100%;
		height: 100%;
		background: #F5F4F9;
	}
	.coupon{
		padding: 25rpx;
	}
	.coupon-li{
		padding: 25rpx 30rpx;
		background: #fff;
		display: flex;
		border-radius: 20rpx;
		flex-wrap: nowrap;
		justify-content:space-between;
		margin-bottom: 30rpx;
	}
	.li-left{
		display: flex;
	}
	.li-left-one{
	}
	.li-left-one-num{
		padding-top: 20rpx;
		color: #FF6968;
		text-align: center;
		font-size: 42rpx;
		font-weight: 600;
	}
	.li-left-one-num span{
		font-size: 28rpx;
		padding-right: 5rpx;
	}
	.li-left-one-txt{
		font-size: 28rpx;
		font-weight: 500;
		padding-top: 20rpx;
		padding-bottom: 20rpx;
	}
	
	.li-left-twp{
		padding-left: 25rpx;
		margin-left: 25rpx;
		border-left: 3rpx solid #eee;
	}
	
	.li-rig{
		width: 150rpx;
		height: 60rpx;
		border-radius: 100rpx;
		text-align: center;
		line-height: 60rpx;
		font-size: 30rpx;
		color: #fff;
		background: #FF6968;
		margin-top: 50rpx;
	}
	.li-left-twp-top{
		font-size: 32rpx;
		font-weight: 600;
		padding-bottom: 20rpx;
	}
	.li-left-twp-head{
		font-size: 26rpx;
		color: #999;
	}
	.li-left-twp-btm{
		font-size: 26rpx;
		color: #999;
		padding-top: 20rpx;
	}
</style>